package {
	
	import flash.display.Sprite;
	
	public class BejeweledItem extends Sprite {
		
		private var _row	:int = -1;
		private var _col	:int = -1;
		private var _color	:int = -1;
		
		public function BejeweledItem() {
			buttonMode = true;
			mouseChildren = false;
			
			mcColor.visible = false;
		}
		
		public function set row(value:int):void {
			_row = value;
		}
		
		public function get row():int {
			return _row;
		}
		
		public function set col(value:int):void {
			_col = value;
		}
		
		public function get col():int {
			return _col;
		}
		
		public function set color(value:int):void {
			_color = value;
			mcColor.visible = false;
			
			if (_color >= 1 && _color <= 7) {
				mcColor.visible = true;
				mcColor.gotoAndStop(_color);
			}
		}
		
		public function get color():int {
			return _color;
		}		
	}
}